﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddColumn3.aspx.cs" Inherits="Whir_System_Module_Role_AddColumn3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>栏目管理</title>

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />
    
    <script src="../../Js/jquery/jquery1.3.11.pack.js" type="text/javascript"></script>
    <style type="text/css">
    .tabnav{
	padding:8px;
	height:25px;
	background-color:#EFEFEF;
	font-size:12px;
	font-weight: bold;
	color:#666666;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #999999;
    }
    </style>
    <script type="text/javascript">
	function expant(tabid,obj){
		var tabID = document.getElementById(tabid);
		if(tabID){
			if(tabID.style.display == ""){
				tabID.style.display = "none";
				obj.innerText = "展开";
			}
			else{
				tabID.style.display = "";
				obj.innerText = "折叠";
			}			
		}
	}
    </script>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <script src="../../Js/JQuery/jquery.tabs.pack.js" type="text/javascript"></script>
    
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="74%" valign="top" align="left" id="left" runat="server">
                <div id="tabsNav">
                    <div id="tab1nav" class="tabnav"> 快速添加栏目 </div>
                    <div id="tab1">
                        <table border="0" align="center" cellpadding="3" cellspacing="1" width="100%">
                            <tr>
                                <td height="30" align="center" class="form_tdText">父级栏目 </td>
                                <td align="left" class="form_td">
                                    <asp:DropDownList ID="ddlParent" runat="server" CssClass="select_default">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                <div class="tips">
                                    操作说明：栏目之间用换行分割，下级栏目在栏目前添加“－”字符，如： <br />
                                    栏目一<br />
                                    －下级栏目1<br />
                                    －－下下级栏目<br />
                                    －下级栏目2 <br />
                                </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="txtColumns" runat="server" TextMode="MultiLine" Width="550px" Height="150"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <table border="0" align="center" cellpadding="3" cellspacing="1" width="98%">
                    <tr>
                        <td height="30" colspan="2" align="center">
                            <asp:Button ID="btnUpdate" runat="server" Text="增加" CssClass="btn_default" OnClick="btnUpdate_Click" OnClientClick="return checkForm();" />&nbsp;                                
                            <input type="button" value="关闭" class="btn_default" onclick="parent.tb_remove();" />
                        </td>
                    </tr>
                </table>
            </td>                
        </tr>
    </table>
</form>
</body>
</html>
<script type="text/javascript" language="javascript" src="../../Js/common.js"></script>
<script type="text/javascript">initAutoFormStyle();</script>
<script type="text/javascript" language="javascript">
function checkForm() {
    if ($("#txtColumns").val() == "") {
        alert("请填写栏目名称！");
        $("#txtColumns").focus();
        return false;
    }else {
        return true;
    }
}
</script>
